package com.example.policymode5.context;

import com.example.policymode5.factory.IStrategy;

/**
 * 创建上下文角色
 * @author zhang
 */
public class Context {
    private IStrategy mStrategy;
    public Context(IStrategy strategy) {
        this.mStrategy = strategy;
    }
    public void algorithm() {
        this.mStrategy.algorithm();
    }
}